package com.xiang.api.entity;

import com.xiang.sql.entity.Upload;

import lombok.Data;

@Data
public class UrlId {
  public String id;
  public String url;

  public UrlId(String id, String url) {
    this.id = id;
    this.url = url;
  }

  public UrlId(Upload u) {
    if (u != null) {
      id = u.id;
      url = u.path;
    }
  }
}
